package com.atguigu.springcloud;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;
import org.springframework.core.env.Environment;

/**
 * Created by ZeroV on 2018/11/6.
 */
@SpringBootApplication
@EnableHystrixDashboard
public class DeptConsumer_DashBoard_App {
    private static final Logger logger = LoggerFactory.getLogger(DeptConsumer_DashBoard_App.class);

    public static void main(String[] args) {

        Environment environment = SpringApplication.run(DeptConsumer_DashBoard_App.class).getEnvironment();
        logger.info("\n Local: http://localhost:{}/hystrix", environment.getProperty("server.port"));
    }
}
